package com.wish233.wiliwilivideo.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wish233.wiliwiliapi.domain.dto.UserDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author WHH
 */
@Data
@ApiModel("评论树节点")
public class CommentVO {
    @ApiModelProperty("评论ID")
    private Long id;

    @ApiModelProperty("评论内容")
    private String context;

    @ApiModelProperty("发布者信息")
    private UserDTO author;

    @ApiModelProperty("点赞数")
    private Integer likes;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("回复目标用户（仅子评论需要）")
    private UserDTO replyToUser;

    @ApiModelProperty("根评论ID")
    private Long rootCommentId;

    @JsonIgnore
    @ApiModelProperty("当前用户是否已经点赞")
    private Boolean isLiked;

    @ApiModelProperty("视频id")
    private Long videoId;

    @ApiModelProperty("子评论数量")
    private Integer childCount;
}